package com.hc.fdkgoods.controller;

import com.hc.fdkgoods.common.Result;
import com.hc.fdkgoods.common.page.PageContent;
import com.hc.fdkgoods.service.WaitPushPageService;
import com.hc.fdkgoods.vo.vo_3.PageContentContainerSKUVO;
import com.hc.fdkgoods.vo.vo_3.PageContentInputVO_3;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class WaitPushPageController {
    @Resource
    private WaitPushPageService waitPushPageService;

    @PostMapping("/query/wait/push/page")
    public Result<PageContent<PageContentContainerSKUVO>> waitPushPage(@RequestBody PageContentInputVO_3 p){
        return Result.ok(waitPushPageService.getPageContentContainerSKU(p));
    }
}
